<?php
header("Content-Type: text/html; charset=utf-8");

require __DIR__ . '/../vendor/autoload.php';
require '../helpers.php';
use Framework\Router;
use Framework\Session;
Session::start();

$router = new Router();
$routes = require basePath('routes.php');



$uri = parse_url($_SERVER['REQUEST_URI'],PHP_URL_PATH);
// $method =$_SERVER['REQUEST_METHOD'];

$router->route($uri);